package com.weixingtu.commuterCar.tool.factory;


import com.weixingtu.commuterCar.tool.gps.GPS;
import com.weixingtu.commuterCar.tool.gps.impl.CZJGps;
import com.weixingtu.commuterCar.tool.gps.impl.WWGps;

public class PositionApiFactory {
    public static final byte SHWW = 0x01;
    public static final byte SZCZJ = 0x02;

    public static GPS getGpsApi(byte type){
        if(type==SHWW){
            return new WWGps();
        }else if(type==SZCZJ){
            return new CZJGps();
        }else{
            throw new RuntimeException("无效类型");
        }
    }
}
